package com.xue.springboot001.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ThymeleafController {

    @GetMapping("/hello2")
    public String user(Model model){
        model.addAttribute("msg","哈哈哈哈");
        model.addAttribute("link","www.baidu.com");
        return "success";
    }
}
